<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ofwi="http://java.sun.com/jsf/composite/ofwi"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="/WEB-INF/layouts/standard.xhtml">
	<ui:define name="content">
		<h:form>
			<fieldset><legend
				style="font-size: 20px; font-weight: bold"> User Management</legend>
			<h:panelGrid>
				<p:dataTable id="output" value="#{users}" var="user">
					<p:column>
						<f:facet name="header">
							<h:outputText value="User Name" />
						</f:facet>
						<h:outputText value="#{user.username}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="First Name" />
						</f:facet>
						<h:outputText value="#{user.firstname}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="Last Name" />
						</f:facet>
						<h:outputText value="#{user.lastname}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="Age" />
						</f:facet>
						<h:outputText value="#{user.age}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="Description" />
						</f:facet>
						<h:outputText value="#{user.desc}" />
					</p:column>
				</p:dataTable>
				<p:commandButton value="New User" action="newuser"  ajax="false" ></p:commandButton>
			</h:panelGrid></fieldset>
		</h:form>
	</ui:define>

</ui:composition>
</html>